home *** CD-ROM | disk | FTP | other *** search
- Path: newsbf02.news.aol.com!not-for-mail
- From: simpsondg@aol.com (SimpsonDG)
- Newsgroups: comp.lang.c,alt.msdos.programmer
- Subject: Re: Two strange C problems.
- Date: 8 Jan 1996 00:36:01 -0500
- Organization: America Online, Inc. (1-800-827-6364)
- Sender: root@newsbf02.news.aol.com
- Message-ID: <4cqag1$h41@newsbf02.news.aol.com>
- References: <4cojb2$qog@lugb.latrobe.edu.au>
- Reply-To: simpsondg@aol.com (SimpsonDG)
- NNTP-Posting-Host: newsbf02.mail.aol.com
-
- Regarding problem 2: When you use \27, \13, \24, and \25, you are
- specifying OCTAL constants. So, for example, \24 = octal 24 = decimal 20
- = the "paragraph" character on a PC.
-
- Normally I specify special characters like this according to their hex
- values. To do this, use the form \xnn, where nn are the hexadecimal
- digits. For your example, you could use
-
- const escape=\x1b;
- const cr=\x0d
- const bs=\x08;
-
- David G. Simpson
- University of Maryland, Baltimore County
-